using Newtonsoft.Json;
using PersianCore.Cameras;

namespace PersianCore.Framework.PA
{
    public class PaLoader
    {
        public static PaCamera LoadCameraFromFile(string fileName)
        {
            var str = System.IO.File.ReadAllText(fileName);
            var je = (PaCamera)JsonConvert.DeserializeObject(str, typeof(PaCamera));
            return je;
        }
    }
}